﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="news.aspx.cs" Inherits="NCKH.news" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
        .centar {
           text-align:center;
        }
        .right {
        text-align:right;
        }
        </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:GridView ID="grvtin" runat="server" 
    AutoGenerateColumns="false" HorizontalAlign="Center" BorderColor="#ffffff"
    OnRowCommand="grvtin_RowCommand" 
    OnSelectedIndexChanged="grvtin_SelectedIndexChanged" Width="500px">
    <Columns>     
        <asp:TemplateField >
            <ItemTemplate>
                <a href='<%# Eval("Image") %>'><asp:Image ID="Image" runat="server" ImageUrl='<%# Eval("Image") %>' Width="100px" Height="100px" /></a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemStyle HorizontalAlign="Justify" />            
            <ItemTemplate>
                <h3><asp:Label ID="tieude" runat="server" Text='<%# Eval("Tieude") %>' Width="400px" CssClass="centar" ></asp:Label></h3>
                    <br />
                    <i><%# Eval("Tomtat") %></i>  
                <br />
                <asp:HyperLink ID="tiep" runat="server" CssClass="right" Text="Xem tiếp..." NavigateUrl='<%# Eval("Manoidungtin","/noidungtintuc.aspx?id={0}") %>'></asp:HyperLink>
            </ItemTemplate>
             </asp:TemplateField>
    </Columns>
</asp:GridView>
</asp:Content>